package com.link2room.ironhide.feign.optimus;

import com.link2room.common.dto.result.base.BaseResultDto;

import com.link2room.optimus.dto.param.base.PriceStaticBaseParamDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by sss on 2016/11/17.
 */
@FeignClient("${spring.gateway.name}/${feign.optimus}")
public interface StaticPriceFeignService {
    /**
     * 获取最低价
     * @param priceStaticBaseParamDto
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.PUT,value = "/in/StaticPrices/StaticPrice",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto updateStaticPrice(@RequestBody PriceStaticBaseParamDto priceStaticBaseParamDto)throws Exception;
}
